from marajo.appengine.ext import db
from marajo.appengine.api.users import User
from resources.project import Project

class Component(db.Model):
    """
    Component of a project
    """

    name = db.StringProperty(verbose_name="Name")
    project = db.ReferenceProperty(Project, collection_name="components", verbose_name="Project")

    def __str__(self):
        return self.name
